.home-background {
  z-index: -10;
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-image: url("../../public/images/home.png");
}

.home-content {
  z-index: -1;
  position: absolute;
  top: 2%;
  right: 1%;
  width: 50%;
  height: 96%;
  background: rgba(black, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 32px;
  box-shadow: 10px 10px 5px rgba(#817294, 0.8);

  iframe {
    z-index: 30;
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .content {
    z-index: 10;
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    perspective: 1000px;
    .school-logo {
      position: absolute;
      top: 100px;
      left: 50%;
      width: 700px;
      transform: translateX(-50%);
    }
    div {
      height: 100%;

      h1 {
        position: relative;
        height: 100%;

        span {
          z-index: 30;
          position: absolute;
          top: 40%;
          left: 50%;
          width: 90%;
          text-align: center;
          font-size: 80px;
          text-shadow: 15px 5px 5px rgba(#b99fd9, 0.4);
          background: linear-gradient(to right, #7c60ea, #76b6ff, #c79bff);
          -webkit-background-clip: text; /*将设置的背景颜色限制在文字中*/
          -webkit-text-fill-color: transparent; /*给文字设置成透明*/
          transform: translate(-50%, -50%) rotateY(0deg) rotateZ(0);

          &::after {
            display: block;
            content: "作者 : 王文杰、陈梓垌";
            font-size: 16px;
          }
        }

        .cube1 {
          z-index: 20;
          position: absolute;
          top: 23%;
          right: 0;
          width: 400px;
          animation: rotate 5s linear infinite;
        }

        @keyframes rotate {
          0% {
            transform: translate(0, 0);
          }
          50% {
            transform: translate(0, -60px);
          }
          100% {
            transform: translate(0, 0);
          }
        }
      }
    }

    .button-box {
      z-index: 40;
      position: relative;
      bottom: 20%;
      left: 50%;
      width: 40%;
      height: 50px;
      transform: translate(-50%, -50%);
      cursor: pointer;

      .container {
        .button {
          position: relative;
          text-decoration: none;
          outline: none;
          width: 100%;
          height: 100%;
          transition: transform 0.5s;

          .button-content {
            z-index: 1;
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            overflow: hidden;
            background: linear-gradient(
              90deg,
              rgba(#77b6ff, 1),
              rgba(#b0a2ff, 1)
            );
            padding: 20px 48px;
            border-radius: 64px;
            border: 4px solid #ffff;

            .button-text,
            .button-icon {
              z-index: 10;
              position: relative;
              margin-right: 10px;
            }

            .button-text {
              color: #ffffff;
              font-size: 24px;
              font-weight: 700;
            }

            .button-icon {
              font-size: 20px;
            }

            .button-reflection-1,
            .button-reflection-2 {
              z-index: 3;
              position: absolute;
              top: 0;
              width: 8px;
              height: 120px;
              background-color: #a0a8ff;
              inset: 0;
              margin: auto;
              transform: rotate(30deg);
              transition: left 0.6s cubic-bezier(0.2, 0.5, 0.2, 1.2);
            }

            .button-reflection-1 {
              z-index: 5;
            }

            .button-reflection-1::after {
              position: absolute;
              top: -16px;
              left: 20px;
              content: "";
              width: 26px;
              height: 100%;
              background-color: #b5b4f7;
            }

            .button-reflection-2::after {
              position: absolute;
              top: -16px;
              left: 12.8px;
              content: "";
              width: 40px;
              height: 100%;
              background-color: #aea3ff;
            }
          }

          svg {
            z-index: 10;
            opacity: 0;
            color: #ffffff;
            pointer-events: none;
            transition: transform 0.5s, opacity 0.5s;
          }

          .button-shadow {
            z-index: -1;
            position: absolute;
            left: 0;
            top: 0;
            width: 90%;
            height: 180%;
            background: linear-gradient(
              90deg,
              rgba(#77b6ff, 1),
              rgba(#b0a2ff, 1)
            );
            border-radius: 64px;
            border: 4px solid #ffff;
            transition: transform 0.3s;
          }
        }

        .button-star-1 {
          position: absolute;
          width: 20px;
          top: -14px;
          left: -16px;
          transform: rotate(48deg) scale(0.1);
        }

        .button-star-2 {
          position: absolute;
          width: 40px;
          top: -8px;
          right: -15px;
          transform: rotate(-48deg) scale(0.1);
        }

        .button-circle-1,
        .button-circle-2 {
          position: absolute;
          width: 8px;
        }

        .button-circle-1 {
          top: -8px;
          left: 58px;
          transform: scale(0.1);
        }

        .button-circle-2 {
          right: 34px;
          bottom: -10px;
          transform: scale(0.1);
        }

        .button-diamond {
          position: absolute;
          width: 18px;
          top: -18px;
          right: 62px;
          transform: scale(0.1);
        }

        .button-triangle {
          position: absolute;
          width: 30px;
          left: 15px;
          bottom: -16px;
          transform: rotate(-48deg) scale(0.1);
        }

        .button:hover .button-shadow {
          transform: translate(-10px, 10px);
        }

        .button:hover .button-reflection-1 {
          left: 120%;
        }

        .button:hover .button-reflection-2 {
          left: -70%;
        }

        .button:hover {
          transform: rotate(-4deg) scale(1.1);
        }

        .button:hover svg {
          color: #ffffff;
          opacity: 1;
        }

        .button:hover .button-star-1 {
          transform: rotate(0) scale(1.1);
          transition-delay: 0.1s;
        }

        .button:hover .button-star-2 {
          transform: rotate(0) scale(1.1);
          transition-delay: 0.1s;
        }

        .button:hover .button-circle-1 {
          transform: translateY(-8px) scale(1.1);
          transition-delay: 0.1s;
        }

        .button:hover .button-circle-2 {
          transform: translate(-20px, 20px) scale(1.1);
          transition-delay: 0.1s;
        }

        .button:hover .button-diamond {
          transform: translateY(7px) rotate(-24deg) scale(1.1);
          transition-delay: 0.1s;
        }

        .button:hover .button-triangle {
          transform: rotate(-12deg) scale(1.1);
          transition-delay: 0.1s;
        }
      }
    }
  }
}
